// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 管理员添加有效的附件类型 管理员添加有效的附件类型 POST /valid-attachment-types/addValidAttachmentTypes */
export async function postValidAttachmentTypesAddValidAttachmentTypes(
  body: API.AddValidAttachmentTypesDTO,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseValidAttachmentTypes>(
    '/valid-attachment-types/addValidAttachmentTypes',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 删除有效的附件类型 删除有效的附件类型 GET /valid-attachment-types/delValidAttachmentTypes */
export async function getValidAttachmentTypesDelValidAttachmentTypes(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getValidAttachmentTypesDelValidAttachmentTypesParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean>(
    '/valid-attachment-types/delValidAttachmentTypes',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取有效的附件类型列表 获取有效的附件类型列表 GET /valid-attachment-types/getValidAttachmentTypes */
export async function getValidAttachmentTypesGetValidAttachmentTypes(options?: {
  [key: string]: any;
}) {
  return request<API.BaseResponseListValidAttachmentTypes>(
    '/valid-attachment-types/getValidAttachmentTypes',
    {
      method: 'GET',
      ...(options || {}),
    },
  );
}

/** 获取有效的附件类型详情 获取有效的附件类型详情 GET /valid-attachment-types/getValidAttachmentTypesDetailById */
export async function getValidAttachmentTypesGetValidAttachmentTypesDetailById(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getValidAttachmentTypesGetValidAttachmentTypesDetailByIdParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseValidAttachmentTypes>(
    '/valid-attachment-types/getValidAttachmentTypesDetailById',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 更新有效的附件类型 更新有效的附件类型 POST /valid-attachment-types/updateValidAttachmentTypes */
export async function postValidAttachmentTypesUpdateValidAttachmentTypes(
  body: API.UpdateValidAttachmentTypesDTO,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseValidAttachmentTypes>(
    '/valid-attachment-types/updateValidAttachmentTypes',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}
